home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmC3_101_Main < prev    next >
Encoding:
Text File  |  1992-04-08  |  917 b   |  45 lines

  1. // %filename% -- main program 
  2. // Created %date% %time% by AppMaker 
  3.  
  4. #ifndef __MACAPP__
  5. #include <MacApp.h>
  6. #endif
  7.  
  8. #ifndef __U%appname%App__
  9. #include <U%appname%App.h>
  10. #endif
  11.  
  12. // following are alternative to #include
  13. // to get around "free store exhausted" when compiling
  14.     
  15. extern pascal void InitUGridView();             
  16. extern pascal void InitUTEView();
  17. extern pascal void InitUDialog();
  18. extern pascal void InitUPrinting();
  19.  
  20. #pragma processor 68000
  21.  
  22. #pragma segment Main
  23. //----------
  24. void main ()
  25. {
  26.     T%Appname%App%    %*g%Appname%App;
  27.     
  28.     InitToolBox ();
  29.     if (ValidateConfiguration (gConfiguration)) {
  30.         InitUMacApp (10);    // number of calls to MoreMasters
  31.         InitUGridView ();
  32.         InitUTEView ();
  33.         InitUDialog ();
  34.         InitUPrinting ();
  35.         
  36.         g%Appname%App = new T%Appname%App;
  37.         g%Appname%App->I%Appname%App ();
  38.         g%Appname%App->Run ();
  39.     } else {
  40.         StdAlert (phUnsupportedConfiguration);
  41.     }
  42. } /* main */
  43.  
  44. /* %appname% */
  45.